


//
//  homeweiuser.swift
//  mywei
//
//  Created by myd on 15/12/19.
//  Copyright © 2015年 myd1. All rights reserved.
//

import UIKit

class homeweiuser: NSObject {

    
    var idstr : String?
    var screen_name : String?
    var profile_image_url : String?
    var mbrank : Int = 0 {
   didSet
   {
    if mbrank>0&&mbrank<7{
        vipimage = UIImage(named: "common_icon_membership_level\(mbrank)")
    
    }
        }willSet
        {
       
        }
    }
    
    var verified_type = -1 {
        didSet{
       switch verified_type
       {
       case 0:
        verifiedimage = UIImage(named: "verified")
       case 2,3,4:
        verifiedimage = UIImage(named: "avatar_enterprise_vip")
       case 220:
        verifiedimage = UIImage(named: "avatar_grassroot")
       default :
        return
            }
        }willSet{}
    }
    init(dic : [String : AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dic)
        
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
    
    var verifiedimage : UIImage?
    var vipimage: UIImage?
    
}
